from flaskapp import create_app
import os
# 设置环境变量 SERVERHOME
basedir = os.path.abspath(os.path.dirname(__file__))
os.environ['SERVERHOME'] = basedir


app = create_app('development')

if __name__ == "__main__":

    from flaskapp.model.mongo import init_db
    init_db(app)
    
    app.run(host="0.0.0.0",port=6565, debug=True)

